package com.bweab.pojo;

import java.util.Objects;

public class UsersTb {
    private int userId;//用户id
    private String userName;//用户名字
    private String userPassword;//用户密码
    private String userSex;//用户性别

    private String userXh;//用户学号

    private String userPhone;//用户的电话号码

    private String userStatus;//用户的身份状态 0普通用户     1系统管理员


    public UsersTb() {
    }

    public UsersTb(int userId, String userName, String userPassword, String userSex, String userXh, String userPhone, String userStatus) {
        this.userId = userId;
        this.userName = userName;
        this.userPassword = userPassword;
        this.userSex = userSex;
        this.userXh = userXh;
        this.userPhone = userPhone;
        this.userStatus = userStatus;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UsersTb userTb = (UsersTb) o;
        return userId == userTb.userId && Objects.equals(userName, userTb.userName) && Objects.equals(userPassword, userTb.userPassword) && Objects.equals(userSex, userTb.userSex) && Objects.equals(userXh, userTb.userXh) && Objects.equals(userPhone, userTb.userPhone) && Objects.equals(userStatus, userTb.userStatus);
    }

    @Override
    public int hashCode() {
        return Objects.hash(userId, userName, userPassword, userSex, userXh, userPhone, userStatus);
    }

    @Override
    public String toString() {
        return "UserTb{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", userSex='" + userSex + '\'' +
                ", userXh='" + userXh + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", userStatus='" + userStatus + '\'' +
                '}';
    }

    //get  set


    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getUserSex() {
        return userSex;
    }

    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }

    public String getUserXh() {
        return userXh;
    }

    public void setUserXh(String userXh) {
        this.userXh = userXh;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(String userStatus) {
        this.userStatus = userStatus;
    }
}
